/**
 * 
 */
package ar.edu.unq.svnpermission.components;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

/**
 * 
 * Representa un objeto que siempre formara parte de otro
 * @author nicolas
 */
public abstract class AutoAttacheablePanel extends Panel {

	private static final long serialVersionUID = 1L;

	
	
	public AutoAttacheablePanel(String id, MarkupContainer container)
	{
		super(id);
		container.add(this);
		this.build();
	}
	
	public AutoAttacheablePanel(String id, MarkupContainer container, IModel<?> model)
	{
		super(id,model);
		container.add(this);
		this.build();		
	}
	
	
	public abstract void build();
}
